﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using BusinessEntities;
using System.Data;

namespace BusinessLogicLayer
{
   public class NhanVien_Manager
    {
       NhanVien_Adapter nv_adapter=new NhanVien_Adapter();
        //goi ham NhanVien_SelectALL
       public DataTable NV_SelectALL()
       {
           return nv_adapter.NhanVien_SelectAll();
       }
       public int NV_Insert(NhanVien_Info nv_info)
       {
           return nv_adapter.NhanVien_Insert(nv_info);
       }
       public int NV_Update(NhanVien_Info nv_info)
       {
           return nv_adapter.NhanVien_Update(nv_info);
       }
       public int NV_Delete(NhanVien_Info nv_info)
       {
           return nv_adapter.NhanVien_Delete(nv_info);
       }
       public DataTable NhanVien_TimTheoMaNV(string MaNV)
       {
           return nv_adapter.NhanVien_TimTheoMaNV(MaNV);
       }
       public DataTable NhanVien_TimTheoTen(string Ten)
       {
           return nv_adapter.NhanVien_TimTheoTen(Ten);
       }
       public DataTable NhanVien_TimTheoChuVu(string Chuvu)
       {
           return nv_adapter.NhanVien_TimTheoChucVu(Chuvu);
       }
       public DataTable NhanVien_TimTheoPhong(string Phong)
       {
           return nv_adapter.NhanVien_TimTheoPhong(Phong);
       }
       public DataTable PhongDieuTri_All()
       {
          return nv_adapter.PhongDieuTri_All();
       }
       //load danh sach cac phong kham
       public DataTable PhongKham_All()
       {
           return nv_adapter.PhongKham_All();
       }


    }
}
